package com.alibaba.cloud.exception;

import com.alibaba.cloud.enums.ResultCodeEnum;

import lombok.Getter;
/**
 * @Description: 消息发送失败
 * @author: cruise zhb1316783262@163.com
 * @date: 2022年6月25日下午3:08:10
 */
@Getter
public class MessageException extends RuntimeException {

    
    private ResultCodeEnum codeEnum;
    
    private static final long serialVersionUID = -371928259124714855L;
    public MessageException(String message) {
        super(message);
    }

    public MessageException(ResultCodeEnum codeEnum, String message) {
        super(message);
        this.codeEnum = codeEnum;
    }

    public MessageException(ResultCodeEnum codeEnum, String message, Throwable cause) {
        super(message, cause);
        this.codeEnum = codeEnum;
    }

}
